<?php

$url = "./resources/config.xml";
$xml= new SimpleXmlElement($url,1,true);
var_dump($xml);

print "</p>HOST:".$xml->database->host."</p>";
print "</p>DB:".$xml->database->name."</p>";
print "</p>USER:".$xml->database->user."</p>";
print "</p>PASS:".$xml->database->password."</p>";

$dests = $xml->mail->to->children();

var_dump($dests);

print $dests->dest;

if($dests){
	for($i=0;$i<count($dests);$i++){
		print "</p>dest[".$i."]:".$dests[$i]."</p>";
	}
}

?>